var t, e = function(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}(require("../../../utils/tools.js"));

getApp();

Page({
    data: {
        type: 1
    },
    onLoad: function(e) {
        t = this, e.type && (this.data.type = e.type), wx.setNavigationBarTitle({
            title: 1 == this.data.type ? "农场规则" : "招募说明"
        });
    },
    onReady: function() {
        var a = {
            action: "rule",
            contr: "home",
            token: wx.getStorageSync("token"),
            type: this.data.type
        };
        e.default.request(a, function(e) {
            t.setData(e.info);
        });
    },
    onShow: function() {},
    onShareAppMessage: function() {
        return {
            title: this.data.share.text,
            imageUrl: this.data.share.images,
            path: "bh_farm/pages/index/index?parent_id=" + this.data.share.member_id
        };
    }
});